#ifndef __MAZE__
#define __MAZE__

#include "include.h"

typedef struct 
{
    int x;
    int y;
}Pos;

typedef Pos SElemType;

typedef struct
{
    SElemType *base;   
    SElemType *top;
    int StackSize; 
}stack;

typedef  int status;
#define ok 1
#define error 0
#define STACKSIZE 100

extern stack s; 
extern int Maze[10][10];
extern Pos current,next;

//-------------------------------栈操作函数------------------------------
status initStack(stack *s);
status push(stack *s, SElemType pos);
SElemType pop(stack *s);
//------------------------------地图操作函数-----------------------------
void ShowMaze(int (*Maze)[10]);
void setStart();
void foundway(int (* maze)[10],stack *s);
Pos gonext(int (* maze)[10],Pos current);

#endif


